import VuePlugin from 'rollup-plugin-vue'
import babel from '@rollup/plugin-babel'

export default [
  {
    input: 'src/index.js',
    output: {
      file: 'dist/app.js',
      format: 'esm',
      sourcemap: 'inline',
    },
    plugins: [
      VuePlugin(),
      babel({
        babelHelpers: 'runtime',
        presets: ["@babel/preset-env"],
        plugins: [['@babel/plugin-transform-runtime', { useESModules: true }]]
      })
    ],
    external: ['vue'],
  },
]
